import React, { memo } from "react"
import type { FC, ReactNode } from "react"
import { useRoutes } from "react-router-dom"
import router from "./router"
interface IProps {
  children?: ReactNode
}

const Index: FC<IProps> = () => {
  return (
    <div>
      {useRoutes(router)}
      <div id="container"></div>
    </div>
  )
}

export default memo(Index)
